package TestNG;

import functions.Init;
import functions.item;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: MoiMini
 * Date: 07/11/13
 * Time: 15:51
 * To change this template use File | Settings | File Templates.
 */
public class HomeTest {
    public void setUp() throws Exception {

    }

    public void tearDown() throws Exception {

    }

    @Test
    public void testNew_item() throws Exception {
        item product;
        product = new item("sku", 10, "MyName");
        System.out.println("name :"+product.getItem_name());
        Assert.assertEquals("MyName", product.getItem_name());
    }

    @Test
    public void testShow_all() throws Exception {
        Init init_mod;
        ArrayList<item> myitems;
       // myitems = init_mod.show_all() ;
        System.out.println("@Test - testEmptyCollection");
    }

    @Test
    public void testDecrease() throws Exception {
        int stocklvl=5;
        stocklvl=stocklvl-1;
        Assert.assertEquals("4", stocklvl);

    }

}
